Path: blob/master/Part 3 - Classification/Support Vector Machine/[R] Support Vector Machine.ipynb
1009 views
Kernel: R
Support Vector Machine
Data preprocessing
In [13]:
In [14]:
In [15]:
In [16]:
Fitting classifier to the Training set
In [17]:
Predicting the Test set results
In [18]:
In [19]:
Out[19]:
In [20]:
Out[20]:
Making the Confusion Matrix
In [21]:
Out[21]:
y_pred
0 1
0 47 4
1 7 22
classifier made 47 + 22 = 69 correct prediction and 7 + 4 = 11 incoreect predictions.
Visualising the Training set results
In [25]:
Out[25]:
Visualising the Test set results
In [26]:
Out[26]:
So there is not much change as compare to the Logistic Regression